		$(document).ready(function() {
		  
			$('textarea.editor').tinymce({
				// Location of TinyMCE script
				script_url : '/tiny_mce/tiny_mce.js',

				// General options
				theme : "advanced",
				plugins : "autolink,lists,inlinepopups,media,contextmenu,paste,directionality,noneditable,xhtmlxtras,template,advlist,obj_img",

				// Theme options
				theme_advanced_buttons1 : "formatselect,bold,italic,underline,strikethrough,sub,sup,|,bullist,numlist,|,link,unlink,|,image,obj_img,media,hr,code",
				theme_advanced_buttons2 : "",
				theme_advanced_buttons3 : "",
				theme_advanced_buttons4 : "",
				theme_advanced_toolbar_location : "top",
				theme_advanced_toolbar_align : "left",
				theme_advanced_statusbar_location : "bottom",
				theme_advanced_resizing : true,
				
				relative_urls:false,
				
				cleanup_on_startup : true,
				verify_html: false,
  			paste_use_dialog : true,
  			paste_auto_cleanup_on_paste : true,
  			
				DEL_valid_elements : "@[title|width|height|hspace|align|vspace],a[name|href|target|title],strong/b,em/i,strike,u,"
				+ "#p,-ol[type|compact],-ul[type|compact],-li,br,img[src|border|alt=|title|width|height|hspace|align|vspace],-sub,-sup,"
				+ "-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|"
				+ "height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|"
				+ "height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,"
				+ "#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor"
				+ "|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,"
				+ "-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],"
				+ "object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width"
				+ "|height|src|*],script[src|type],map[name],area[shape|coords|href|alt|target],bdo,"
				+ "col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|valign|width],dfn,fieldset,"
				+ "kbd,label[for],legend,"
				+ "q[cite],samp,small,"
				+ "tt,var,big",
  			//extended_valid_elements : "a[name|href|target|title],img[src|border=0|alt|title|hspace|vspace|width|height|align],hr[width|size|noshade],span[align],h1,h2,h3,h4,h5,h6,p",

				// Example content CSS (should be your site CSS)
				body_class: "ucnt",
				content_css : "/css/layout_share.css,/css/ucnt.css",

        paste_preprocess : function(pl, o) {
					//o.content = myCustomCleanup(o.content);
				},
				obj_edit_id : $('#edit_form').attr('rel')
				/*
				// Drop lists for link/image/media/template dialogs
				template_external_list_url : "lists/template_list.js",
				external_link_list_url : "lists/link_list.js",
				external_image_list_url : "lists/image_list.js",
				media_external_list_url : "lists/media_list.js",

				// Replace values for the template plugin
				template_replace_values : {
					username : "Some User",
					staffid : "991234"
				}
				*/
			});
		});